package com.ourway.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 * @author lwh
 * @date 2021/11/28
 */
@NoArgsConstructor
@Data
public class FeiShuMessageCardCallBackVo implements Serializable {

    private String challenge;

    /**
     * 用于更新消息卡片的token（凭证）
     */
    private String token;

    private String type;

    /**
     * 用户的open_id
     */
    private String open_id;

    /**
     * 用户的user_id
     */
    private String user_id;
    /**
     * 触发交互操作的消息id
     */
    private String open_message_id;

    /**
     * 消息归属的租户id
     */
    private String tenant_key;


    private ActionBean action;

    @NoArgsConstructor
    @Data
    public static class ActionBean {

        private ValueBean value;
        private String tag;

        @NoArgsConstructor
        @Data
        public static class ValueBean {

            private String chosen;

            private String instanceCode;

            private String messageId;
        }
    }
}
